﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
    public class PositionBLL
    {
        PositionDAL dal = new PositionDAL();
        /// <summary>
        /// 显示职位
        /// </summary>
        /// <returns></returns>
        public pageLibrary<Position> ShowPosition(int pageindex, int pagesize)
        {
            pageLibrary<Position> pager = new pageLibrary<Position>();
            pager.PageIndex = pageindex;
            pager.PageSize = pagesize;
            pager.PageCount = dal.CountPosition();
            pager.Data = dal.ShowPosition(pageindex, pagesize);
            return pager;
        }
        /// <summary>
        /// 删除评论信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DelPosition(int id)
        {
            int dr = dal.DelPosition(id);
            return dr;
        }
    }
}
